Choropleth and interactive maps of oil spill incidents across CA in 2008.
This code creates maps depicting location and number of oil spills in each county in California in 2008. A G-function analysis was carried out to asses whether clustering is present in the data. See code for annotations.
First, lets see what our data looks like using a basic interactive tmap:
# Create basic interactive exploratory plot using tmap
tmap_mode(mode = 'view')
tm_shape(ca_sf) +
tm_borders(col = 'black') +
tm_shape(oil_spill_sf) +
tm_dots()